<?php
$this->breadcrumbs = array(
    'Admins' => array('index'),
    'Create',
);

$this->menu = array(
    array('label' => 'List Admin', 'url' => array('index')),
    array('label' => 'Manage Admin', 'url' => array('index')),
);
?>

<h1>Create Admin</h1>

<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'type' => 'horizontal',
    'id' => 'admin-form',
    'enableAjaxValidation' => false,
        ));
?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->dropDownListRow($model, 'role', array('admin' => 'Admin', 'super' => 'Super Admin'), array('class' => 'span2')); ?>

<?php echo $form->textFieldRow($model, 'email', array('class' => 'span5', 'maxlength' => 40)); ?>

<?php echo $form->textFieldRow($model, 'username', array('class' => 'span5', 'maxlength' => 40)); ?>

<?php echo $form->passwordFieldRow($model, 'password', array('class' => 'span5', 'maxlength' => 40)); ?>

<?php echo $form->textFieldRow($model, 'fullname', array('class' => 'span5', 'maxlength' => 100)); ?>

<?php echo $form->textFieldRow($model, 'phone', array('class' => 'span5', 'maxlength' => 11)); ?>

<?php echo $form->textAreaRow($model, 'address', array('class' => 'span5', 'maxlength' => 200)); ?>

<?php echo $form->dropDownListRow($model, 'gender', array(0 => 'Nữ', 1 => 'Nam'), array('class' => 'span1')); ?>

<div class="form-actions">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'primary',
        'label' => 'Tạo mới',
    ));
    ?>
</div>

<?php $this->endWidget(); ?>
